// MalwareBasicApiTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
using namespace std;
#include "MalPathUtil.h"
#include "MalFileUtil.h"
#include "MalSysInfo.h"
#include "MalUtilMacro.h"

int _tmain(int argc, _TCHAR* argv[])
{
	/*
	{ _T("%current_user%"), CSIDL_PROFILE },
	{ _T("%common_appdata%"), CSIDL_COMMON_APPDATA },
	{ _T("%appdata%"), CSIDL_APPDATA },
	{ _T("%system%"), CSIDL_SYSTEM },
	*/

	CAtlString strSrc = _T("%common_appdata%\\abc\\ddd");
	CAtlString strDst;

	if (mal_path_util::ExpandEnvironmentStrings(strSrc, strDst))
	{
		wcout << strDst.GetBuffer() << endl;
	}
	else
	{
		wcout << L"Expand faild" << endl;
	}


	CWinVerInfo info;
	info.Init();

	BOOL bRet = mal_file_util::IsSystemFile(_T("C:\\Windows\\System32\\svchost.exe"));
	
	USE_WOW64_START(tmp)
		if(1)
		{
			wcout << L"hello World" << endl;
		}
	USE_WOW64_END
	return 0;
}

